import axios from "axios"

export default function () {
    return axios({
        method: "get",
        url: "/api/users/authCode",
    })
        .then(response => {
            return {
                status: true,
                data: response.data
            }
        })
        .catch(error => {
            return {
                status: false,
                msg: error.response.data.msg
            }
        });
}